<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script type="text/javascript">
    var week = '周二'
    switch (week) {
        case "周一":
            console.log('吃鱼')
            break
        case '周二':
            console.log('吃虾')
            break
    }
    var i=1
    num=0
    while (i<=100){
        num+=i
        i++
    }
    console.log(num)
</script>
</body>
</html>